package com.fqxl.labour.controller;

import com.fqxl.labour.service.SlideshowService;
import com.fqxl.labour.untils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: SlideshowController
 * @Description:
 * @Author: Awen
 * @Date: 2023/5/18 17:51
 */
@RestController
@RequestMapping("/slideshow")
@Api(tags = "轮播图")
public class SlideshowController {

    @Autowired
    private SlideshowService slideshowService;

    @ApiOperation("查询轮播图")
    @GetMapping("/selectSlideshow")
    public R selectSlideshow(){
        return slideshowService.selectSlideshow();
    }

}
